@extends('client/layoutIndex')

@section('link')
    <link rel="stylesheet" href="{{ asset('client/css/forgetP.css') }}">
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <script src="{{ asset('client/layer/layer.js') }}"></script>
    <script src="{{ asset('client/js/send.js') }}"></script>
@stop

@section('content')
                <!-- --找回密码-- -->
                <div class="forget">
                    <div style="width:100%;max-width:1200px;margin:auto;">
                    <div class="forget-tit">
                        <h3 style="font-weight:bold;">找回密码</h3>
                        <span></span>
                        <img src="{{ asset('client/image/xvxian.png') }}">
                        <span id="msg" style="display: none">
                            @if (count($errors) > 0)
                                @foreach ($errors->all() as $error)
                                    <div style="width: 100%;">
                                        <span style="color: red;display: block;margin: 0px auto;width: 200px;text-align: center;">{{ $error }}</span>
                                    </div>
                                @endforeach
                            @endif
                        </span>
                        <script type="text/javascript">
                            var _msg = $('#msg div span').text();
                            console.log(_msg);
                            if(_msg != ''){
                                layer.msg(_msg);
                            }
                        </script>
                    </div>
                    <div class="forget-form">
                        <form method="post" class="form-horizontal" action="{{ url('client/username') }}">
                            {{csrf_field()}}
                            <div class="form-group" style="margin:30px;">
                                <label class="col-md-2 col-sm-2 col-xs-2">用户名：</label>
                                <div class="col-md-5 col-sm-5 col-xs-5">
                                    <input type="text" name="car_num" class="form-control" placeholder="只需输入车牌号" required="required">
                                </div>
                            </div>
                            <div class="form-group" style="margin:30px;">
                                <label class="col-md-2 col-sm-2 col-xs-2">手机号码：</label>
                                <div class="col-md-5 col-sm-5 col-xs-5">
                                    <input type="text" name="phone" id="phone" class="form-control"placeholder="请输入手机号码" required="required">
                                </div>
                            </div>
                            <div class="form-group" style="margin:30px;">
                                <label class="col-md-2 col-sm-2 col-xs-2">验证码：</label>
                                <div class="col-md-5 col-sm-5 col-xs-5">
                                    <input type="text" name="code" class="form-control" placeholder="请输入验证码" required="required">
                                </div>
                                <div class="col-md-4 col-sm-4 col-xs-4">
                                    {{--<a class="btn btn-default" style="height:34px;" id="btnreg" onclick="register();"  >获取手机验证码</a>--}}
                                    <input type="button" id="btnreg" onclick="register();" class="btn btn-default" value="获取验证码" />
                                </div>
                            </div>
                            <div class="form-group" style="margin:30px;margin-top:60px;">
                                <div class="col-md-offset-4 col-md-6 col-sm-offset-4 col-sm-6 col-xs-offset-4 col-xs-6">
                                    <button style="height:40px;text-align:center;font-weight:bold;color:#fff;font-size:20px;" class="btn-warning">下一步</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                </div>
                <!-- --找回密码 end-- -->
@stop
